cmake_minimum_required(VERSION 3.10)
project(StudySrs)
set(CMAKE_CXX_STANDARD 98)
set(Srs_Path ../../srs.oschina/trunk)
INCLUDE_DIRECTORIES(${Srs_Path}/objs
        ${Srs_Path}/objs/st ${Srs_Path}/objs/hp ${Srs_Path}/objs/openssl/include
        ${Srs_Path}/src/core  ${Srs_Path}/src/kernel ${Srs_Path}/src/protocol ${Srs_Path}/src/app ${Srs_Path}/src/service)

set(SOURCE_FILES UdpTest.cpp)

AUX_SOURCE_DIRECTORY(${Srs_Path}/src/core SOURCE_FILES)
AUX_SOURCE_DIRECTORY(${Srs_Path}/src/kernel SOURCE_FILES)
AUX_SOURCE_DIRECTORY(${Srs_Path}/src/protocol SOURCE_FILES)
AUX_SOURCE_DIRECTORY(${Srs_Path}/src/app SOURCE_FILES)
AUX_SOURCE_DIRECTORY(${Srs_Path}/src/service SOURCE_FILES)



add_executable(StudySrs ${SOURCE_FILES})

TARGET_LINK_LIBRARIES(StudySrs dl)
TARGET_LINK_LIBRARIES(StudySrs ${PROJECT_SOURCE_DIR}/${Srs_Path}/objs/st/libst.a)
TARGET_LINK_LIBRARIES(StudySrs ${PROJECT_SOURCE_DIR}/${Srs_Path}/objs/openssl/lib/libssl.a)
TARGET_LINK_LIBRARIES(StudySrs ${PROJECT_SOURCE_DIR}/${Srs_Path}/objs/openssl/lib/libcrypto.a)
TARGET_LINK_LIBRARIES(StudySrs -ldl)
